<template>
	<view>
		<xl-navbar title="安卓侧滑返回"></xl-navbar>
		
		<xl-back @back="back"></xl-back>
		<!-- <view v-if="showContainer">
			<page-container 
				:show="showContainer"  
				:duration="false" 
				:overlay="false"  
				@beforeleave="beforeleave"
			></page-container>  
		</view> -->
	</view>
</template>

<script setup>
	import { nextTick, ref } from 'vue'
	function back() {
		console.log('...back拦截...');
	}
	
	const showContainer = ref(true)
	function beforeleave() {
		showContainer.value = false
		console.log('1256');
		back()
		nextTick(() => showContainer.value = true)
	}
</script>

<style lang="scss" scoped>
	
</style>